import request from '@/router/axios'

export function fetchIndex (query) {
  return request({
    url: '/admin/index/getData',
    method: 'get',
    params: query
  })
}

export function fetchUserCharts (query) {
  return request({
    url: '/admin/index/fetchUserCharts',
    method: 'get',
    params: query
  })
}

export function fetchSaleCharts (query) {
  return request({
    url: '/admin/index/fetchSaleCharts',
    method: 'get',
    params: query
  })
}
